package gba.dnp.graphics;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JPanel;

public class DrawArea extends JPanel { 
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ViewModel dataModel;
	
	public DrawArea (ViewModel model) {
		this.dataModel = model;
	}

	@Override
	public void paint(Graphics g) {
		g.setColor(Color.BLACK);
		setBackground(Color.WHITE);
		Vector2D point = dataModel.getPosition();
		g.fillOval(point.getX(), point.getY(), 50, 50);
	}
}
